package tests.logicaluserdecision;

import static org.junit.Assert.*;
import logic.startdecision.LogicalUserDecision;

import org.junit.Test;

public class LogicalUserDecisionLogicalTests {

	@Test
	public void parseDatacurrentYexpectedTrue() {
		String current = "y";
		boolean excepted = true;
		LogicalUserDecision logicalUserDecision = new LogicalUserDecision();
		assertEquals(excepted, logicalUserDecision.parseData(current));
	}
	
	@Test
	public void parseDatacurrentYexpectedNotFalse() {
		String current = "y";
		boolean excepted = false;
		LogicalUserDecision logicalUserDecision = new LogicalUserDecision();
		assertEquals(!excepted, logicalUserDecision.parseData(current));
	}
	
	@Test
	public void parseDatacurrentNexpectedFalse() {
		String current = "n";
		boolean excepted = false;
		LogicalUserDecision logicalUserDecision = new LogicalUserDecision();
		assertEquals(excepted, logicalUserDecision.parseData(current));
	}
	
	@Test
	public void parseDatacurrentNexpectedNotTrue() {
		String current = "y";
		boolean excepted = false;
		LogicalUserDecision logicalUserDecision = new LogicalUserDecision();
		assertEquals(!excepted, logicalUserDecision.parseData(current));
	}
	
	@Test
	public void parseDatacurrentNullexpectedNotTrue() {
		String current = null;
		boolean excepted = false;
		LogicalUserDecision logicalUserDecision = new LogicalUserDecision();
		assertEquals(excepted, logicalUserDecision.parseData(current));
	}
	
	@Test
	public void parseDatacurrentNullexpectedNotFalse() {
		String current = null;
		boolean excepted = true;
		LogicalUserDecision logicalUserDecision = new LogicalUserDecision();
		assertEquals(!excepted, logicalUserDecision.parseData(current));
	}
	
	

}
